a=int(input())
c=1
while c<a:
    c=c+1
    b=0
    for i in range(2,c):
        if float(c//i)==c/i:
            b=b+1
    if b==0:
        print(c,end=' ')
    
